package com.itheima.jiuye;

import java.util.Observable;
import java.util.Observer;

public class Student5 implements Observer {

	@Override
	public void update(Observable o, Object arg) {
		Teacher teacher = (Teacher) o;
		String message = teacher.message;
		System.out.println(getClass().getSimpleName() + " 听到老师的  " + message);
	}
}
